package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 学生调班表
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@Accessors(chain = true)
@TableName("student_change")
public class StudentChange {

    /**
     * 学生调班id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 调班时间
     */
    private LocalDateTime inputTime;

    /**
     * 录入人id
     */
    private Integer inputId;

    /**
     * 旧班
     */
    private Integer oldClassId;

    /**
     * 新班
     */
    private Integer newClassId;

    /**
     * 对应学生id
     */
    private Integer studentId;

    /**
     * 调班时原班级进度
     */
    private String oldSchedule;

    /**
     * 新班级进度
     */
    private String newSchedule;

    /**
     * 调班原因
     */
    private String content;

    /**
     * 删除
     */
    @TableLogic
    private Boolean enable;

    //老师对象
    @TableField(exist = false)
    private Teacher teacher;

    //学生对象
    @TableField(exist = false)
    private Student student;



    @TableField(exist = false)
    private Classes newClass;

    @TableField(exist = false)
    private Classes oldClass;
}
